diff options
author | Christoph Hellwig <hch@lst.de> | 2014-04-22 17:11:51 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-04-22 17:11:51 -0400 |
commit | f37211c336d722805493aec8b13afdbb92bbfd98 (patch) | |
tree | b5870df11bc07a5a946e9f355f2df670a785723b /fs | |
parent | 22328d712dd7fdc984d17da2121be840d1f844cd (diff) |
xfs: remove XFS_IFILESTREAM
We never test the flag except in xfs_inode_is_filestream, but that
function already tests the on-disk flag or filesystem wide flags,
and is used to decide if we want to set XFS_IFILESTREAM in the
first place.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_filestream.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_filestream.h | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_inode.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_inode.h | 4 |
4 files changed, 1 insertions, 8 deletions
diff --git a/fs/xfs/xfs_filestream.c b/fs/xfs/xfs_filestream.c index dde529fa5eb5..c422110c7c43 100644 --- a/fs/xfs/xfs_filestream.c +++ b/fs/xfs/xfs_filestream.c | |||
@@ -430,8 +430,6 @@ xfs_fstrm_free_func( | |||
430 | container_of(mru, fstrm_item_t, mru); | 430 | container_of(mru, fstrm_item_t, mru); |
431 | xfs_inode_t *ip = item->ip; | 431 | xfs_inode_t *ip = item->ip; |
432 | 432 | ||
433 | xfs_iflags_clear(ip, XFS_IFILESTREAM); | ||
434 | |||
435 | /* Drop the reference taken on the AG when the item was added. */ | 433 | /* Drop the reference taken on the AG when the item was added. */ |
436 | xfs_filestream_put_ag(ip->i_mount, item->ag); | 434 | xfs_filestream_put_ag(ip->i_mount, item->ag); |
437 | 435 | ||
diff --git a/fs/xfs/xfs_filestream.h b/fs/xfs/xfs_filestream.h index 6d61dbee8564..c4fa9a0cd62f 100644 --- a/fs/xfs/xfs_filestream.h +++ b/fs/xfs/xfs_filestream.h | |||
@@ -63,7 +63,6 @@ xfs_inode_is_filestream( | |||
63 | struct xfs_inode *ip) | 63 | struct xfs_inode *ip) |
64 | { | 64 | { |
65 | return (ip->i_mount->m_flags & XFS_MOUNT_FILESTREAMS) || | 65 | return (ip->i_mount->m_flags & XFS_MOUNT_FILESTREAMS) || |
66 | xfs_iflags_test(ip, XFS_IFILESTREAM) || | ||
67 | (ip->i_d.di_flags & XFS_DIFLAG_FILESTREAM); | 66 | (ip->i_d.di_flags & XFS_DIFLAG_FILESTREAM); |
68 | } | 67 | } |
69 | 68 | ||
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 5e7a38fa6ee6..3328320592a6 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -849,8 +849,6 @@ xfs_ialloc( | |||
849 | error = xfs_filestream_associate(pip, ip); | 849 | error = xfs_filestream_associate(pip, ip); |
850 | if (error < 0) | 850 | if (error < 0) |
851 | return -error; | 851 | return -error; |
852 | if (!error) | ||
853 | xfs_iflags_set(ip, XFS_IFILESTREAM); | ||
854 | } | 852 | } |
855 | 853 | ||
856 | *ipp = ip; | 854 | *ipp = ip; |
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index 396cc1fafd0d..a7c2ebf05e4b 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h | |||
@@ -209,7 +209,6 @@ xfs_get_initial_prid(struct xfs_inode *dp) | |||
209 | #define XFS_ISTALE (1 << 1) /* inode has been staled */ | 209 | #define XFS_ISTALE (1 << 1) /* inode has been staled */ |
210 | #define XFS_IRECLAIMABLE (1 << 2) /* inode can be reclaimed */ | 210 | #define XFS_IRECLAIMABLE (1 << 2) /* inode can be reclaimed */ |
211 | #define XFS_INEW (1 << 3) /* inode has just been allocated */ | 211 | #define XFS_INEW (1 << 3) /* inode has just been allocated */ |
212 | #define XFS_IFILESTREAM (1 << 4) /* inode is in a filestream dir. */ | ||
213 | #define XFS_ITRUNCATED (1 << 5) /* truncated down so flush-on-close */ | 212 | #define XFS_ITRUNCATED (1 << 5) /* truncated down so flush-on-close */ |
214 | #define XFS_IDIRTY_RELEASE (1 << 6) /* dirty release already seen */ | 213 | #define XFS_IDIRTY_RELEASE (1 << 6) /* dirty release already seen */ |
215 | #define __XFS_IFLOCK_BIT 7 /* inode is being flushed right now */ | 214 | #define __XFS_IFLOCK_BIT 7 /* inode is being flushed right now */ |
@@ -225,8 +224,7 @@ xfs_get_initial_prid(struct xfs_inode *dp) | |||
225 | */ | 224 | */ |
226 | #define XFS_IRECLAIM_RESET_FLAGS \ | 225 | #define XFS_IRECLAIM_RESET_FLAGS \ |
227 | (XFS_IRECLAIMABLE | XFS_IRECLAIM | \ | 226 | (XFS_IRECLAIMABLE | XFS_IRECLAIM | \ |
228 | XFS_IDIRTY_RELEASE | XFS_ITRUNCATED | \ | 227 | XFS_IDIRTY_RELEASE | XFS_ITRUNCATED) |
229 | XFS_IFILESTREAM); | ||
230 | 228 | ||
231 | /* | 229 | /* |
232 | * Synchronize processes attempting to flush the in-core inode back to disk. | 230 | * Synchronize processes attempting to flush the in-core inode back to disk. |