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
Kirill Smelkov
linux
Commits
f720e3ba
Commit
f720e3ba
authored
Jun 06, 2007
by
Dave Kleikamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JFS: Whitespace cleanup and remove some dead code
Signed-off-by:
Dave Kleikamp
<
shaggy@linux.vnet.ibm.com
>
parent
5ecd3100
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1002 additions
and
1034 deletions
+1002
-1034
fs/jfs/endian24.h
fs/jfs/endian24.h
+1
-1
fs/jfs/jfs_dinode.h
fs/jfs/jfs_dinode.h
+21
-21
fs/jfs/jfs_dmap.c
fs/jfs/jfs_dmap.c
+206
-213
fs/jfs/jfs_dmap.h
fs/jfs/jfs_dmap.h
+59
-59
fs/jfs/jfs_dtree.c
fs/jfs/jfs_dtree.c
+50
-55
fs/jfs/jfs_dtree.h
fs/jfs/jfs_dtree.h
+1
-1
fs/jfs/jfs_extent.c
fs/jfs/jfs_extent.c
+51
-51
fs/jfs/jfs_filsys.h
fs/jfs/jfs_filsys.h
+6
-7
fs/jfs/jfs_imap.c
fs/jfs/jfs_imap.c
+139
-154
fs/jfs/jfs_imap.h
fs/jfs/jfs_imap.h
+49
-49
fs/jfs/jfs_incore.h
fs/jfs/jfs_incore.h
+2
-2
fs/jfs/jfs_logmgr.c
fs/jfs/jfs_logmgr.c
+34
-34
fs/jfs/jfs_logmgr.h
fs/jfs/jfs_logmgr.h
+13
-13
fs/jfs/jfs_mount.c
fs/jfs/jfs_mount.c
+3
-3
fs/jfs/jfs_txnmgr.c
fs/jfs/jfs_txnmgr.c
+143
-143
fs/jfs/jfs_txnmgr.h
fs/jfs/jfs_txnmgr.h
+1
-1
fs/jfs/jfs_types.h
fs/jfs/jfs_types.h
+10
-10
fs/jfs/jfs_umount.c
fs/jfs/jfs_umount.c
+1
-1
fs/jfs/jfs_xtree.c
fs/jfs/jfs_xtree.c
+212
-216
No files found.
fs/jfs/endian24.h
View file @
f720e3ba
fs/jfs/jfs_dinode.h
View file @
f720e3ba
fs/jfs/jfs_dmap.c
View file @
f720e3ba
...
@@ -706,12 +706,6 @@ int dbAlloc(struct inode *ip, s64 hint, s64 nblocks, s64 * results)
...
@@ -706,12 +706,6 @@ int dbAlloc(struct inode *ip, s64 hint, s64 nblocks, s64 * results)
/* assert that nblocks is valid */
/* assert that nblocks is valid */
assert
(
nblocks
>
0
);
assert
(
nblocks
>
0
);
#ifdef _STILL_TO_PORT
/* DASD limit check F226941 */
if
(
OVER_LIMIT
(
ip
,
nblocks
))
return
-
ENOSPC
;
#endif
/* _STILL_TO_PORT */
/* get the log2 number of blocks to be allocated.
/* get the log2 number of blocks to be allocated.
* if the number of blocks is not a log2 multiple,
* if the number of blocks is not a log2 multiple,
* it will be rounded up to the next log2 multiple.
* it will be rounded up to the next log2 multiple.
...
@@ -720,7 +714,6 @@ int dbAlloc(struct inode *ip, s64 hint, s64 nblocks, s64 * results)
...
@@ -720,7 +714,6 @@ int dbAlloc(struct inode *ip, s64 hint, s64 nblocks, s64 * results)
bmp
=
JFS_SBI
(
ip
->
i_sb
)
->
bmap
;
bmp
=
JFS_SBI
(
ip
->
i_sb
)
->
bmap
;
//retry: /* serialize w.r.t.extendfs() */
mapSize
=
bmp
->
db_mapsize
;
mapSize
=
bmp
->
db_mapsize
;
/* the hint should be within the map */
/* the hint should be within the map */
...
@@ -3953,8 +3946,8 @@ static int dbGetL2AGSize(s64 nblocks)
...
@@ -3953,8 +3946,8 @@ static int dbGetL2AGSize(s64 nblocks)
* convert number of map pages to the zero origin top dmapctl level
* convert number of map pages to the zero origin top dmapctl level
*/
*/
#define BMAPPGTOLEV(npages) \
#define BMAPPGTOLEV(npages) \
(((npages) <= 3 + MAXL0PAGES) ? 0 \
(((npages) <= 3 + MAXL0PAGES) ? 0
:
\
:
((npages) <= 2 + MAXL1PAGES) ? 1 : 2)
((npages) <= 2 + MAXL1PAGES) ? 1 : 2)
s64
dbMapFileSizeToMapSize
(
struct
inode
*
ipbmap
)
s64
dbMapFileSizeToMapSize
(
struct
inode
*
ipbmap
)
{
{
...
@@ -3981,8 +3974,8 @@ s64 dbMapFileSizeToMapSize(struct inode * ipbmap)
...
@@ -3981,8 +3974,8 @@ s64 dbMapFileSizeToMapSize(struct inode * ipbmap)
factor
=
factor
=
(
i
==
2
)
?
MAXL1PAGES
:
((
i
==
1
)
?
MAXL0PAGES
:
1
);
(
i
==
2
)
?
MAXL1PAGES
:
((
i
==
1
)
?
MAXL0PAGES
:
1
);
complete
=
(
u32
)
npages
/
factor
;
complete
=
(
u32
)
npages
/
factor
;
ndmaps
+=
complete
*
((
i
==
2
)
?
LPERCTL
*
LPERCTL
ndmaps
+=
complete
*
((
i
==
2
)
?
LPERCTL
*
LPERCTL
:
:
((
i
==
1
)
?
LPERCTL
:
1
));
((
i
==
1
)
?
LPERCTL
:
1
));
/* pages in last/incomplete child */
/* pages in last/incomplete child */
npages
=
(
u32
)
npages
%
factor
;
npages
=
(
u32
)
npages
%
factor
;
...
...
fs/jfs/jfs_dmap.h
View file @
f720e3ba
fs/jfs/jfs_dtree.c
View file @
f720e3ba
...
@@ -1739,9 +1739,6 @@ static int dtExtendPage(tid_t tid,
...
@@ -1739,9 +1739,6 @@ static int dtExtendPage(tid_t tid,
/* update buffer extent descriptor of extended page */
/* update buffer extent descriptor of extended page */
xlen
=
lengthPXD
(
pxd
);
xlen
=
lengthPXD
(
pxd
);
xsize
=
xlen
<<
JFS_SBI
(
sb
)
->
l2bsize
;
xsize
=
xlen
<<
JFS_SBI
(
sb
)
->
l2bsize
;
#ifdef _STILL_TO_PORT
bmSetXD
(
smp
,
xaddr
,
xsize
);
#endif
/* _STILL_TO_PORT */
/*
/*
* copy old stbl to new stbl at start of extended area
* copy old stbl to new stbl at start of extended area
...
@@ -2581,9 +2578,7 @@ int dtRelocate(tid_t tid, struct inode *ip, s64 lmxaddr, pxd_t * opxd,
...
@@ -2581,9 +2578,7 @@ int dtRelocate(tid_t tid, struct inode *ip, s64 lmxaddr, pxd_t * opxd,
/* update the buffer extent descriptor of the dtpage */
/* update the buffer extent descriptor of the dtpage */
xsize
=
xlen
<<
JFS_SBI
(
ip
->
i_sb
)
->
l2bsize
;
xsize
=
xlen
<<
JFS_SBI
(
ip
->
i_sb
)
->
l2bsize
;
#ifdef _STILL_TO_PORT
bmSetXD
(
mp
,
nxaddr
,
xsize
);
#endif
/* _STILL_TO_PORT */
/* unpin the relocated page */
/* unpin the relocated page */
DT_PUTPAGE
(
mp
);
DT_PUTPAGE
(
mp
);
jfs_info
(
"dtRelocate: target dtpage relocated."
);
jfs_info
(
"dtRelocate: target dtpage relocated."
);
...
...
fs/jfs/jfs_dtree.h
View file @
f720e3ba
fs/jfs/jfs_extent.c
View file @
f720e3ba
...
@@ -397,7 +397,7 @@ int extHint(struct inode *ip, s64 offset, xad_t * xp)
...
@@ -397,7 +397,7 @@ int extHint(struct inode *ip, s64 offset, xad_t * xp)
if
((
rc
=
xtLookupList
(
ip
,
&
lxdl
,
&
xadl
,
0
)))
if
((
rc
=
xtLookupList
(
ip
,
&
lxdl
,
&
xadl
,
0
)))
return
(
rc
);
return
(
rc
);
/* check if no
t
extent exists for the previous page.
/* check if no extent exists for the previous page.
* this is possible for sparse files.
* this is possible for sparse files.
*/
*/
if
(
xadl
.
nxad
==
0
)
{
if
(
xadl
.
nxad
==
0
)
{
...
...
fs/jfs/jfs_filsys.h
View file @
f720e3ba
...
@@ -83,7 +83,6 @@
...
@@ -83,7 +83,6 @@
/* case-insensitive name/directory support */
/* case-insensitive name/directory support */
#define JFS_AIX 0x80000000
/* AIX support */
#define JFS_AIX 0x80000000
/* AIX support */
/* POSIX name/directory support - Never implemented*/
/*
/*
* buffer cache configuration
* buffer cache configuration
...
...
fs/jfs/jfs_imap.c
View file @
f720e3ba
...
@@ -802,7 +802,6 @@ int diWrite(tid_t tid, struct inode *ip)
...
@@ -802,7 +802,6 @@ int diWrite(tid_t tid, struct inode *ip)
/*
/*
* lock/copy inode base: 128 byte slot granularity
* lock/copy inode base: 128 byte slot granularity
*/
*/
// baseDinode:
lv
=
&
dilinelock
->
lv
[
dilinelock
->
index
];
lv
=
&
dilinelock
->
lv
[
dilinelock
->
index
];
lv
->
offset
=
dioffset
>>
L2INODESLOTSIZE
;
lv
->
offset
=
dioffset
>>
L2INODESLOTSIZE
;
copy_to_dinode
(
dp
,
ip
);
copy_to_dinode
(
dp
,
ip
);
...
@@ -813,17 +812,6 @@ int diWrite(tid_t tid, struct inode *ip)
...
@@ -813,17 +812,6 @@ int diWrite(tid_t tid, struct inode *ip)
lv
->
length
=
1
;
lv
->
length
=
1
;
dilinelock
->
index
++
;
dilinelock
->
index
++
;
#ifdef _JFS_FASTDASD
/*
* We aren't logging changes to the DASD used in directory inodes,
* but we need to write them to disk. If we don't unmount cleanly,
* mount will recalculate the DASD used.
*/
if
(
S_ISDIR
(
ip
->
i_mode
)
&&
(
ip
->
i_ipmnt
->
i_mntflag
&
JFS_DASD_ENABLED
))
memcpy
(
&
dp
->
di_DASD
,
&
ip
->
i_DASD
,
sizeof
(
struct
dasd
));
#endif
/* _JFS_FASTDASD */
/* release the buffer holding the updated on-disk inode.
/* release the buffer holding the updated on-disk inode.
* the buffer will be later written by commit processing.
* the buffer will be later written by commit processing.
*/
*/
...
@@ -2481,9 +2469,6 @@ diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp)
...
@@ -2481,9 +2469,6 @@ diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp)
s64
xaddr
=
0
;
s64
xaddr
=
0
;
s64
blkno
;
s64
blkno
;
tid_t
tid
;
tid_t
tid
;
#ifdef _STILL_TO_PORT
xad_t
xad
;
#endif
/* _STILL_TO_PORT */
struct
inode
*
iplist
[
1
];
struct
inode
*
iplist
[
1
];
/* pick up pointers to the inode map and mount inodes */
/* pick up pointers to the inode map and mount inodes */
...
...
fs/jfs/jfs_imap.h
View file @
f720e3ba
fs/jfs/jfs_incore.h
View file @
f720e3ba
fs/jfs/jfs_logmgr.c
View file @
f720e3ba
fs/jfs/jfs_logmgr.h
View file @
f720e3ba
fs/jfs/jfs_mount.c
View file @
f720e3ba
fs/jfs/jfs_txnmgr.c
View file @
f720e3ba
fs/jfs/jfs_txnmgr.h
View file @
f720e3ba
fs/jfs/jfs_types.h
View file @
f720e3ba
fs/jfs/jfs_umount.c
View file @
f720e3ba
fs/jfs/jfs_xtree.c
View file @
f720e3ba
...
@@ -1468,13 +1468,12 @@ xtSplitPage(tid_t tid, struct inode *ip,
...
@@ -1468,13 +1468,12 @@ xtSplitPage(tid_t tid, struct inode *ip,
* xtSplitRoot()
* xtSplitRoot()
*
*
* function:
* function:
* split the full root page into
* split the full root page into original/root/split page and new
* original/root/split page and new right page
* right page
* i.e., root remains fixed in tree anchor (inode) and
* i.e., root remains fixed in tree anchor (inode) and the root is
* the root is copied to a single new right child page
* copied to a single new right child page since root page <<
* since root page << non-root page, and
* non-root page, and the split root page contains a single entry
* the split root page contains a single entry for the
* for the new right child page.
* new right child page.
*
*
* parameter:
* parameter:
* int tid,
* int tid,
...
@@ -3026,16 +3025,14 @@ xtRelocate(tid_t tid, struct inode * ip, xad_t * oxad, /* old XAD */
...
@@ -3026,16 +3025,14 @@ xtRelocate(tid_t tid, struct inode * ip, xad_t * oxad, /* old XAD */
*/
*/
if
(
lmp
)
{
if
(
lmp
)
{
BT_MARK_DIRTY
(
lmp
,
ip
);
BT_MARK_DIRTY
(
lmp
,
ip
);
tlck
=
tlck
=
txLock
(
tid
,
ip
,
lmp
,
tlckXTREE
|
tlckRELINK
);
txLock
(
tid
,
ip
,
lmp
,
tlckXTREE
|
tlckRELINK
);
lp
->
header
.
next
=
cpu_to_le64
(
nxaddr
);
lp
->
header
.
next
=
cpu_to_le64
(
nxaddr
);
XT_PUTPAGE
(
lmp
);
XT_PUTPAGE
(
lmp
);
}
}
if
(
rmp
)
{
if
(
rmp
)
{
BT_MARK_DIRTY
(
rmp
,
ip
);
BT_MARK_DIRTY
(
rmp
,
ip
);
tlck
=
tlck
=
txLock
(
tid
,
ip
,
rmp
,
tlckXTREE
|
tlckRELINK
);
txLock
(
tid
,
ip
,
rmp
,
tlckXTREE
|
tlckRELINK
);
rp
->
header
.
prev
=
cpu_to_le64
(
nxaddr
);
rp
->
header
.
prev
=
cpu_to_le64
(
nxaddr
);
XT_PUTPAGE
(
rmp
);
XT_PUTPAGE
(
rmp
);
}
}
...
@@ -4099,8 +4096,7 @@ s64 xtTruncate_pmap(tid_t tid, struct inode *ip, s64 committed_size)
...
@@ -4099,8 +4096,7 @@ s64 xtTruncate_pmap(tid_t tid, struct inode *ip, s64 committed_size)
*/
*/
tlck
=
txLock
(
tid
,
ip
,
mp
,
tlckXTREE
);
tlck
=
txLock
(
tid
,
ip
,
mp
,
tlckXTREE
);
xtlck
=
(
struct
xtlock
*
)
&
tlck
->
lock
;
xtlck
=
(
struct
xtlock
*
)
&
tlck
->
lock
;
xtlck
->
hwm
.
offset
=
xtlck
->
hwm
.
offset
=
le16_to_cpu
(
p
->
header
.
nextindex
)
-
1
;
le16_to_cpu
(
p
->
header
.
nextindex
)
-
1
;
tlck
->
type
=
tlckXTREE
|
tlckFREE
;
tlck
->
type
=
tlckXTREE
|
tlckFREE
;
XT_PUTPAGE
(
mp
);
XT_PUTPAGE
(
mp
);
...
...
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