diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-04-23 01:59:02 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-05-14 17:20:58 -0400 |
commit | 2a0ec1d9ed7f3aa7974fccfbb612fadda2e10bad (patch) | |
tree | df922fdcf44b6b537b00668da1ffba98283727d1 /fs/xfs/xfs_rw.c | |
parent | fd50092c08068b5bc5d170bc17894db584aaf7b2 (diff) |
xfs: move xfs_get_extsz_hint() and kill xfs_rw.h
The only thing left in xfs_rw.h is a function prototype for an inode
function. Move that to xfs_inode.h, and kill xfs_rw.h.
Also move the function implementing the prototype from xfs_rw.c to
xfs_inode.c so we only have one function left in xfs_rw.c
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_rw.c')
-rw-r--r-- | fs/xfs/xfs_rw.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/fs/xfs/xfs_rw.c b/fs/xfs/xfs_rw.c index 7e3644f6ac9a..c406cb6075fa 100644 --- a/fs/xfs/xfs_rw.c +++ b/fs/xfs/xfs_rw.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include "xfs_dinode.h" | 28 | #include "xfs_dinode.h" |
29 | #include "xfs_inode.h" | 29 | #include "xfs_inode.h" |
30 | #include "xfs_error.h" | 30 | #include "xfs_error.h" |
31 | #include "xfs_rw.h" | ||
32 | 31 | ||
33 | /* | 32 | /* |
34 | * Force a shutdown of the filesystem instantly while keeping | 33 | * Force a shutdown of the filesystem instantly while keeping |
@@ -89,17 +88,3 @@ xfs_do_force_shutdown( | |||
89 | "Please umount the filesystem and rectify the problem(s)"); | 88 | "Please umount the filesystem and rectify the problem(s)"); |
90 | } | 89 | } |
91 | } | 90 | } |
92 | |||
93 | /* | ||
94 | * helper function to extract extent size hint from inode | ||
95 | */ | ||
96 | xfs_extlen_t | ||
97 | xfs_get_extsz_hint( | ||
98 | struct xfs_inode *ip) | ||
99 | { | ||
100 | if ((ip->i_d.di_flags & XFS_DIFLAG_EXTSIZE) && ip->i_d.di_extsize) | ||
101 | return ip->i_d.di_extsize; | ||
102 | if (XFS_IS_REALTIME_INODE(ip)) | ||
103 | return ip->i_mount->m_sb.sb_rextsize; | ||
104 | return 0; | ||
105 | } | ||