]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Remote attr validation fixes and optimisations
authorDave Chinner <dchinner@redhat.com>
Tue, 30 Apr 2013 11:39:35 +0000 (21:39 +1000)
committerBen Myers <bpm@sgi.com>
Wed, 1 May 2013 19:13:55 +0000 (14:13 -0500)
commitcc91f6f4f9ad5248279c238f1f351e19a32eae97
tree5939657206b29c7678a347a3a13ea4880a1d4f82
parentf4d2d8b457c936df28160dd451c3d79524aed8b2
xfs: Remote attr validation fixes and optimisations

- optimise the calcuation for the number of blocks in a remote
  xattr.
- check attribute length against MAX_XATTR_SIZE, not MAXPATHLEN
- whitespace fixes

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_attr_remote.c