summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_attr_remote.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-01-08 18:08:07 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2020-01-16 17:07:23 +0100
commit8edbb26b06023de31ad7d4c9b984d99f66577929 (patch)
tree22a515022386a46057cf9a0b761f4f55cca752e8 /fs/xfs/libxfs/xfs_attr_remote.h
parentxfs: fix IOCB_NOWAIT handling in xfs_file_dio_aio_read (diff)
downloadlinux-8edbb26b06023de31ad7d4c9b984d99f66577929.tar.xz
linux-8edbb26b06023de31ad7d4c9b984d99f66577929.zip
xfs: refactor remote attr value buffer invalidation
Hoist the code that invalidates remote extended attribute value buffers into a separate helper function. This prepares us for a memory corruption fix in the next patch. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_attr_remote.h')
-rw-r--r--fs/xfs/libxfs/xfs_attr_remote.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_attr_remote.h b/fs/xfs/libxfs/xfs_attr_remote.h
index 9d20b66ad379..6fb4572845ce 100644
--- a/fs/xfs/libxfs/xfs_attr_remote.h
+++ b/fs/xfs/libxfs/xfs_attr_remote.h
@@ -11,5 +11,7 @@ int xfs_attr3_rmt_blocks(struct xfs_mount *mp, int attrlen);
int xfs_attr_rmtval_get(struct xfs_da_args *args);
int xfs_attr_rmtval_set(struct xfs_da_args *args);
int xfs_attr_rmtval_remove(struct xfs_da_args *args);
+int xfs_attr_rmtval_stale(struct xfs_inode *ip, struct xfs_bmbt_irec *map,
+ xfs_buf_flags_t incore_flags);
#endif /* __XFS_ATTR_REMOTE_H__ */