Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
707ed5fd
Commit
707ed5fd
authored
May 22, 2011
by
Benny Halevy
Committed by
Boaz Harrosh
May 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pnfs: align layoutget requests on page boundaries
Signed-off-by:
Benny Halevy
<
bhalevy@panasas.com
>
parent
fb3296eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
fs/nfs/pnfs.c
fs/nfs/pnfs.c
+8
-0
No files found.
fs/nfs/pnfs.c
View file @
707ed5fd
...
...
@@ -850,6 +850,7 @@ pnfs_update_layout(struct inode *ino,
.
offset
=
pos
,
.
length
=
count
,
};
unsigned
pg_offset
;
struct
nfs_inode
*
nfsi
=
NFS_I
(
ino
);
struct
nfs_client
*
clp
=
NFS_SERVER
(
ino
)
->
nfs_client
;
struct
pnfs_layout_hdr
*
lo
;
...
...
@@ -899,6 +900,13 @@ pnfs_update_layout(struct inode *ino,
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
);
if
(
!
lseg
&&
first
)
{
spin_lock
(
&
clp
->
cl_lock
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment