~ubuntu-branches/ubuntu/quantal/linux-lowlatency/quantal

« back to all changes in this revision

Viewing changes to fs/udf/file.c

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-04kado7d1u2er2rl
Tags: 3.2.0-16.25
Add new lowlatency kernel flavour

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
                        err = udf_expand_file_adinicb(inode);
126
126
                        if (err) {
127
127
                                udf_debug("udf_expand_adinicb: err=%d\n", err);
128
 
                                up_write(&iinfo->i_data_sem);
129
128
                                return err;
130
129
                        }
131
130
                } else {
133
132
                                iinfo->i_lenAlloc = pos + count;
134
133
                        else
135
134
                                iinfo->i_lenAlloc = inode->i_size;
 
135
                        up_write(&iinfo->i_data_sem);
136
136
                }
137
 
        }
138
 
        up_write(&iinfo->i_data_sem);
 
137
        } else
 
138
                up_write(&iinfo->i_data_sem);
139
139
 
140
140
        retval = generic_file_aio_write(iocb, iov, nr_segs, ppos);
141
141
        if (retval > 0)