OSDN Git Service

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)
commit946217ba28637d7a08e03e93ef40586ce621f557
tree5939657206b29c7678a347a3a13ea4880a1d4f82
parent123887e8433e58ebbcc4c91491d8b8cde31d6d79
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