Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
13156dad
Commit
13156dad
authored
Feb 03, 2003
by
Dave Kleikamp
Browse files
Options
Browse Files
Download
Plain Diff
Merge jfs@jfs.bkbits.net:linux-2.5
into shaggy.austin.ibm.com:/shaggy/bk/jfs-2.5
parents
6e5f0131
45dd3dc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
Documentation/filesystems/jfs.txt
Documentation/filesystems/jfs.txt
+1
-3
fs/jfs/jfs_dtree.c
fs/jfs/jfs_dtree.c
+21
-2
No files found.
Documentation/filesystems/jfs.txt
View file @
13156dad
...
...
@@ -28,8 +28,6 @@ JFS TODO list:
Plans for our near term development items
- enhance support for logfile on dedicated partition
- get access control list functionality operational
- get extended attributes functionality operational
Longer term work items
...
...
@@ -37,7 +35,7 @@ Longer term work items
- add quota support
- add support for block sizes (512,1024,2048)
Please send bugs, comments, cards and letters to
linuxjfs@us
.ibm.com.
Please send bugs, comments, cards and letters to
shaggy@austin
.ibm.com.
The JFS mailing list can be subscribed to by using the link labeled
"Mail list Subscribe" at our web page http://oss.software.ibm.com/jfs/.
fs/jfs/jfs_dtree.c
View file @
13156dad
...
...
@@ -221,6 +221,25 @@ static struct metapage *read_index_page(struct inode *inode, s64 blkno)
return
read_metapage
(
inode
,
xaddr
,
PSIZE
,
1
);
}
/*
* get_index_page()
*
* Same as get_index_page(), but get's a new page without reading
*/
static
struct
metapage
*
get_index_page
(
struct
inode
*
inode
,
s64
blkno
)
{
int
rc
;
s64
xaddr
;
int
xflag
;
s32
xlen
;
rc
=
xtLookup
(
inode
,
blkno
,
1
,
&
xflag
,
&
xaddr
,
&
xlen
,
1
);
if
(
rc
||
(
xlen
==
0
))
return
NULL
;
return
get_metapage
(
inode
,
xaddr
,
PSIZE
,
1
);
}
/*
* find_index()
*
...
...
@@ -390,7 +409,7 @@ static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot)
ip
->
i_size
=
PSIZE
;
ip
->
i_blocks
+=
LBLK2PBLK
(
sb
,
sbi
->
nbperpage
);
if
((
mp
=
read
_index_page
(
ip
,
0
))
==
0
)
{
if
((
mp
=
get
_index_page
(
ip
,
0
))
==
0
)
{
jfs_err
(
"add_index: get_metapage failed!"
);
xtTruncate
(
tid
,
ip
,
0
,
COMMIT_PWMAP
);
return
-
1
;
...
...
@@ -433,7 +452,7 @@ static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot)
ip
->
i_size
+=
PSIZE
;
ip
->
i_blocks
+=
LBLK2PBLK
(
sb
,
sbi
->
nbperpage
);
if
((
mp
=
read
_index_page
(
ip
,
blkno
)))
if
((
mp
=
get
_index_page
(
ip
,
blkno
)))
memset
(
mp
->
data
,
0
,
PSIZE
);
/* Just looks better */
else
xtTruncate
(
tid
,
ip
,
offset
,
COMMIT_PWMAP
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment