Loading fs/nfs/pnfs.c +8 −0 Original line number Original line Diff line number Diff line Loading @@ -850,6 +850,7 @@ pnfs_update_layout(struct inode *ino, .offset = pos, .offset = pos, .length = count, .length = count, }; }; unsigned pg_offset; struct nfs_inode *nfsi = NFS_I(ino); struct nfs_inode *nfsi = NFS_I(ino); struct nfs_client *clp = NFS_SERVER(ino)->nfs_client; struct nfs_client *clp = NFS_SERVER(ino)->nfs_client; struct pnfs_layout_hdr *lo; struct pnfs_layout_hdr *lo; Loading Loading @@ -899,6 +900,13 @@ pnfs_update_layout(struct inode *ino, spin_unlock(&clp->cl_lock); spin_unlock(&clp->cl_lock); } } pg_offset = arg.offset & ~PAGE_CACHE_MASK; if (pg_offset) { arg.offset -= pg_offset; arg.length += pg_offset; } arg.length = PAGE_CACHE_ALIGN(arg.length); lseg = send_layoutget(lo, ctx, &arg, gfp_flags); lseg = send_layoutget(lo, ctx, &arg, gfp_flags); if (!lseg && first) { if (!lseg && first) { spin_lock(&clp->cl_lock); spin_lock(&clp->cl_lock); Loading Loading
fs/nfs/pnfs.c +8 −0 Original line number Original line Diff line number Diff line Loading @@ -850,6 +850,7 @@ pnfs_update_layout(struct inode *ino, .offset = pos, .offset = pos, .length = count, .length = count, }; }; unsigned pg_offset; struct nfs_inode *nfsi = NFS_I(ino); struct nfs_inode *nfsi = NFS_I(ino); struct nfs_client *clp = NFS_SERVER(ino)->nfs_client; struct nfs_client *clp = NFS_SERVER(ino)->nfs_client; struct pnfs_layout_hdr *lo; struct pnfs_layout_hdr *lo; Loading Loading @@ -899,6 +900,13 @@ pnfs_update_layout(struct inode *ino, spin_unlock(&clp->cl_lock); spin_unlock(&clp->cl_lock); } } pg_offset = arg.offset & ~PAGE_CACHE_MASK; if (pg_offset) { arg.offset -= pg_offset; arg.length += pg_offset; } arg.length = PAGE_CACHE_ALIGN(arg.length); lseg = send_layoutget(lo, ctx, &arg, gfp_flags); lseg = send_layoutget(lo, ctx, &arg, gfp_flags); if (!lseg && first) { if (!lseg && first) { spin_lock(&clp->cl_lock); spin_lock(&clp->cl_lock); Loading