diff options
author | Dave Kleikamp <shaggy@austin.ibm.com> | 2005-09-16 06:25:41 +0200 |
---|---|---|
committer | Dave Kleikamp <shaggy@austin.ibm.com> | 2005-09-16 06:25:41 +0200 |
commit | 6cb1269b9607649b5edf1c4e7818e0cf34a9db71 (patch) | |
tree | d76dd36252cb5b6d7fa9afa8ec6dc4c03d30834c /fs/jfs/inode.c | |
parent | [PATCH] x86_64: Export end_pfn (diff) | |
download | linux-6cb1269b9607649b5edf1c4e7818e0cf34a9db71.tar.xz linux-6cb1269b9607649b5edf1c4e7818e0cf34a9db71.zip |
JFS: Fix sparse warnings, including endian error
The fix in inode.c is a real bug. It could result in undeleted, yet
unconnected files on big-endian hardware.
The others are trivial.
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Diffstat (limited to 'fs/jfs/inode.c')
-rw-r--r-- | fs/jfs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c index 0ec62d5310db..9f942ca8e4e3 100644 --- a/fs/jfs/inode.c +++ b/fs/jfs/inode.c @@ -129,8 +129,7 @@ void jfs_delete_inode(struct inode *inode) jfs_info("In jfs_delete_inode, inode = 0x%p", inode); if (!is_bad_inode(inode) && - (JFS_IP(inode)->fileset == cpu_to_le32(FILESYSTEM_I))) { - + (JFS_IP(inode)->fileset == FILESYSTEM_I)) { truncate_inode_pages(&inode->i_data, 0); if (test_cflag(COMMIT_Freewmap, inode)) |