* [PATCH] UBIFS: fix commentaries
@ 2009-08-25 15:27 Artem Bityutskiy
2009-08-27 5:29 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Artem Bityutskiy @ 2009-08-25 15:27 UTC (permalink / raw)
To: Adrian Hunter; +Cc: linux-mtd
From: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Change "write-back does take inode @i_mutex" to "write-back does not
take inode @i_mutex" type. IOW, this patch just adds "not" word, the
rest of the changes are just re-formatting to fit the 80 characters
line limit.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
---
fs/ubifs/file.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c
index 6d34dc7..ff43f60 100644
--- a/fs/ubifs/file.c
+++ b/fs/ubifs/file.c
@@ -965,12 +965,12 @@ static int do_writepage(struct page *page, int len)
* and then keeps writing pages back.
*
* Some locking issues explanation. 'ubifs_writepage()' first is called with
- * the page locked, and it locks @ui_mutex. However, write-back does take inode
- * @i_mutex, which means other VFS operations may be run on this inode at the
- * same time. And the problematic one is truncation to smaller size, from where
- * we have to call 'vmtruncate()', which first changes @inode->i_size, then
- * drops the truncated pages. And while dropping the pages, it takes the page
- * lock. This means that 'do_truncation()' cannot call 'vmtruncate()' with
+ * the page locked, and it locks @ui_mutex. However, write-back does not take
+ * inode @i_mutex, which means other VFS operations may be run on this inode at
+ * the same time. And the problematic one is truncation to smaller size, from
+ * where we have to call 'vmtruncate()', which first changes @inode->i_size,
+ * then drops the truncated pages. And while dropping the pages, it takes the
+ * page lock. This means that 'do_truncation()' cannot call 'vmtruncate()' with
* @ui_mutex locked, because it would deadlock with 'ubifs_writepage()'. This
* means that @inode->i_size is changed while @ui_mutex is unlocked.
*
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] UBIFS: fix commentaries
2009-08-25 15:27 [PATCH] UBIFS: fix commentaries Artem Bityutskiy
@ 2009-08-27 5:29 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2009-08-27 5:29 UTC (permalink / raw)
To: Adrian Hunter; +Cc: linux-mtd
On 08/25/2009 06:27 PM, Artem Bityutskiy wrote:
> From: Artem Bityutskiy<Artem.Bityutskiy@nokia.com>
>
> Change "write-back does take inode @i_mutex" to "write-back does not
> take inode @i_mutex" type. IOW, this patch just adds "not" word, the
> rest of the changes are just re-formatting to fit the 80 characters
> line limit.
>
> Signed-off-by: Artem Bityutskiy<Artem.Bityutskiy@nokia.com>
Please, do not look at this patch. I'll create a different one at
some point.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-27 5:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-25 15:27 [PATCH] UBIFS: fix commentaries Artem Bityutskiy
2009-08-27 5:29 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).