linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* what should I do when an error occurred after write_begin()
@ 2008-07-18  0:43 m-ota
  2008-07-21  5:04 ` Andreas Dilger
  0 siblings, 1 reply; 3+ messages in thread
From: m-ota @ 2008-07-18  0:43 UTC (permalink / raw)
  To: linux-fsdevel, linux-ext4

 Hi, all
 
 ext4 online defrag exchanges the data block in the following procedures.
 
 1. Creates a temporary inode and allocates contiguous blocks.
 2. Read data from original file to memory page by write_begin()
 3. Swap the blocks between the original inode and the temporary inode.
    Updates the extent tree and registers the block to transaction by
    ext4_journal_dirty_metadata().
 4. Write data in memory page to new blocks by write_end().
 
 In the current implementation, when the block swap failed,
 data could not move to the new block.
 So the defrag process exits without calling write_end().
 We try to defrag for the same file again, but the defrag process seems to stall.
 After defrag process stalled, all acess to the file systems like "ls" command
 also stall.
 Both processes wait for unlock j_wait_transaction_locked.
 
 If the block exchange between write_begin() and write_end() failed,
 what should I do?
 
 Any advice is welcome, thank you.
     Mikako ohta

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-04 12:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18  0:43 what should I do when an error occurred after write_begin() m-ota
2008-07-21  5:04 ` Andreas Dilger
2008-08-04 12:51   ` Akira Fujita

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).