usb: gadget: udc: reduce indentation
[linux-2.6-block.git] / fs / inode.c
index 9e198f00b64c6f59e7e4a50b1bc8ddf4ec73cdbf..0cd47fe0dbe51db41233db2cace81b1f64503b32 100644 (file)
@@ -730,8 +730,11 @@ static enum lru_status inode_lru_isolate(struct list_head *item,
                return LRU_REMOVED;
        }
 
-       /* recently referenced inodes get one more pass */
-       if (inode->i_state & I_REFERENCED) {
+       /*
+        * Recently referenced inodes and inodes with many attached pages
+        * get one more pass.
+        */
+       if (inode->i_state & I_REFERENCED || inode->i_data.nrpages > 1) {
                inode->i_state &= ~I_REFERENCED;
                spin_unlock(&inode->i_lock);
                return LRU_ROTATE;
@@ -2146,7 +2149,9 @@ EXPORT_SYMBOL(timespec64_trunc);
  */
 struct timespec64 current_time(struct inode *inode)
 {
-       struct timespec64 now = current_kernel_time64();
+       struct timespec64 now;
+
+       ktime_get_coarse_real_ts64(&now);
 
        if (unlikely(!inode->i_sb)) {
                WARN(1, "current_time() called with uninitialized super_block in the inode");