mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
xfs: change the prefix of XFS_EOF_FLAGS_* to XFS_ICWALK_FLAG_
In preparation for renaming struct xfs_eofblocks to struct xfs_icwalk, change the prefix of the existing XFS_EOF_FLAGS_* flags to XFS_ICWALK_FLAG_ and convert all the existing users. This adds a degree of interface separation between the ioctl definitions and the incore parameters. Since FLAGS_UNION is only used in xfs_icache.c, move it there as a private flag. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
This commit is contained in:
parent
9492750a8b
commit
2d53f66baf
4 changed files with 52 additions and 26 deletions
|
@ -1887,7 +1887,18 @@ xfs_fs_eofblocks_from_user(
|
|||
memchr_inv(src->pad64, 0, sizeof(src->pad64)))
|
||||
return -EINVAL;
|
||||
|
||||
dst->eof_flags = src->eof_flags;
|
||||
dst->eof_flags = 0;
|
||||
if (src->eof_flags & XFS_EOF_FLAGS_SYNC)
|
||||
dst->eof_flags |= XFS_ICWALK_FLAG_SYNC;
|
||||
if (src->eof_flags & XFS_EOF_FLAGS_UID)
|
||||
dst->eof_flags |= XFS_ICWALK_FLAG_UID;
|
||||
if (src->eof_flags & XFS_EOF_FLAGS_GID)
|
||||
dst->eof_flags |= XFS_ICWALK_FLAG_GID;
|
||||
if (src->eof_flags & XFS_EOF_FLAGS_PRID)
|
||||
dst->eof_flags |= XFS_ICWALK_FLAG_PRID;
|
||||
if (src->eof_flags & XFS_EOF_FLAGS_MINFILESIZE)
|
||||
dst->eof_flags |= XFS_ICWALK_FLAG_MINFILESIZE;
|
||||
|
||||
dst->eof_prid = src->eof_prid;
|
||||
dst->eof_min_file_size = src->eof_min_file_size;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue