Commit dd5b16b9 authored by Benjamin LaHaise's avatar Benjamin LaHaise

Avoid looping in write_inode_now since the sync_one changes now ensure __sync_one

is called once the inode is unlocked.
parent 50b1b006
...@@ -467,8 +467,7 @@ void write_inode_now(struct inode *inode, int sync) ...@@ -467,8 +467,7 @@ void write_inode_now(struct inode *inode, int sync)
if (sb) { if (sb) {
spin_lock(&inode_lock); spin_lock(&inode_lock);
while (inode->i_state & I_DIRTY) sync_one(inode, sync);
sync_one(inode, sync);
spin_unlock(&inode_lock); spin_unlock(&inode_lock);
if (sync) if (sync)
wait_on_inode(inode); wait_on_inode(inode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment