Loading fs/afs/write.c +11 −12 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ static int afs_fill_page(struct afs_vnode *vnode, struct key *key, */ int afs_write_begin(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, void **fsdata) struct page **_page, void **fsdata) { struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); struct page *page; Loading Loading @@ -110,9 +110,6 @@ int afs_write_begin(struct file *file, struct address_space *mapping, SetPageUptodate(page); } /* page won't leak in error case: it eventually gets cleaned off LRU */ *pagep = page; try_again: /* See if this page is already partially written in a way that we can * merge the new write with. Loading Loading @@ -155,6 +152,7 @@ int afs_write_begin(struct file *file, struct address_space *mapping, set_page_private(page, priv); else attach_page_private(page, (void *)priv); *_page = page; _leave(" = 0"); return 0; Loading @@ -164,18 +162,19 @@ int afs_write_begin(struct file *file, struct address_space *mapping, flush_conflicting_write: _debug("flush conflict"); ret = write_one_page(page); if (ret < 0) { _leave(" = %d", ret); return ret; } if (ret < 0) goto error; ret = lock_page_killable(page); if (ret < 0) { if (ret < 0) goto error; goto try_again; error: put_page(page); _leave(" = %d", ret); return ret; } goto try_again; } /* * finalise part of a write to a page Loading Loading
fs/afs/write.c +11 −12 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ static int afs_fill_page(struct afs_vnode *vnode, struct key *key, */ int afs_write_begin(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, void **fsdata) struct page **_page, void **fsdata) { struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); struct page *page; Loading Loading @@ -110,9 +110,6 @@ int afs_write_begin(struct file *file, struct address_space *mapping, SetPageUptodate(page); } /* page won't leak in error case: it eventually gets cleaned off LRU */ *pagep = page; try_again: /* See if this page is already partially written in a way that we can * merge the new write with. Loading Loading @@ -155,6 +152,7 @@ int afs_write_begin(struct file *file, struct address_space *mapping, set_page_private(page, priv); else attach_page_private(page, (void *)priv); *_page = page; _leave(" = 0"); return 0; Loading @@ -164,18 +162,19 @@ int afs_write_begin(struct file *file, struct address_space *mapping, flush_conflicting_write: _debug("flush conflict"); ret = write_one_page(page); if (ret < 0) { _leave(" = %d", ret); return ret; } if (ret < 0) goto error; ret = lock_page_killable(page); if (ret < 0) { if (ret < 0) goto error; goto try_again; error: put_page(page); _leave(" = %d", ret); return ret; } goto try_again; } /* * finalise part of a write to a page Loading