diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-01 12:22:46 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-30 10:34:14 -0500 |
commit | b60623c238b6a819bd04090139704e2cb57a751f (patch) | |
tree | fcecc0599003db66d937138be94bef4b4372f15b /fs/gfs2/bmap.c | |
parent | e7f14f4d094ea1a9ce1953375f5bc1500c760c79 (diff) |
[GFS2] Shrink gfs2_inode (3) - di_mode
This removes the duplicate di_mode field in favour of using the
inode->i_mode field. This saves 4 bytes.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r-- | fs/gfs2/bmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c index 8c092ab2b4b..481a0688254 100644 --- a/fs/gfs2/bmap.c +++ b/fs/gfs2/bmap.c | |||
@@ -1109,7 +1109,7 @@ int gfs2_truncatei(struct gfs2_inode *ip, u64 size) | |||
1109 | { | 1109 | { |
1110 | int error; | 1110 | int error; |
1111 | 1111 | ||
1112 | if (gfs2_assert_warn(GFS2_SB(&ip->i_inode), S_ISREG(ip->i_di.di_mode))) | 1112 | if (gfs2_assert_warn(GFS2_SB(&ip->i_inode), S_ISREG(ip->i_inode.i_mode))) |
1113 | return -EINVAL; | 1113 | return -EINVAL; |
1114 | 1114 | ||
1115 | if (size > ip->i_di.di_size) | 1115 | if (size > ip->i_di.di_size) |