Re: [PATCH 17/46] nfs41: use nfs4_getaclres

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mar. 29, 2009, 20:28 +0300, Trond Myklebust <Trond.Myklebust@xxxxxxxxxx> wrote:
> On Tue, 2009-03-03 at 16:54 -0700, Benny Halevy wrote:
>> In preparation for nfs41 sequence processing.
>>
>> Signed-off-by: Andy Admason <andros@xxxxxxxxxx>
>> Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx>
>> ---
>>  fs/nfs/nfs4proc.c |    7 +++++--
>>  fs/nfs/nfs4xdr.c  |    5 +++--
>>  2 files changed, 8 insertions(+), 4 deletions(-)
>>
>> diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
>> index 4db965c..1a5fa1d 100644
>> --- a/fs/nfs/nfs4proc.c
>> +++ b/fs/nfs/nfs4proc.c
>> @@ -2822,17 +2822,20 @@ out:
>>  static ssize_t __nfs4_get_acl_uncached(struct inode *inode, void
>> *buf, size_t buflen)
>>  {
>>         struct page *pages[NFS4ACL_MAXPAGES];
>> +       size_t resp_len = buflen;
>>         struct nfs_getaclargs args = {
>>                 .fh = NFS_FH(inode),
>>                 .acl_pages = pages,
>>                 .acl_len = buflen,
>>         };
>> -       size_t resp_len = buflen;
>> +       struct nfs_getaclres res = {
>> +               .acl_len = &resp_len,
>> +       };
> 
> Please embed resp_len in nfs_getaclres. There is no need for a double
> indirection here...
> 

Right.  Thanks!

Benny
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux